"""
@Description :   从 api_key.json 文件中获取 api_key
@Author      :   tqychy 
@Time        :   2025/08/23 22:00:14
"""

import json


def api_key(api_name):
    with open("./config/api_key.json", "r") as f:
        api_keys = json.load(f)
    return api_keys[api_name]

if __name__ == "__main__":
    print(api_key("zhipuai"))
